package com.chianghao.nio.core.handle.http;

/**
 * @author ChiangHao
 * @date 2022/11/5 15:42
 */
public enum HttpMethod {

    /**
     *
     */
    GET,
    /**
     *
     */
    POST,
    /**
     *
     */
    DELETE,
    /**
     *
     */
    PUT;

    public static HttpMethod get(String method) {
        for(HttpMethod hm:HttpMethod.values()){
            if(hm.name().equals(method)){
                return hm;
            }
        }
        return null;
    }
}
